import request from '@/utils/request'

// 查询分组字段列表
export function listOnlCgformGroupField(query) {
  return request({
    url: '/field/onlCgformGroupField/list',
    method: 'get',
    params: query
  })
}

// 查询分组字段详细
export function getOnlCgformGroupField(id) {
  return request({
    url: '/field/onlCgformGroupField/' + id,
    method: 'get'
  })
}

// 保存分组字段
export function saveOnlCgformGroupField(data) {
  return request({
    url: '/field/onlCgformGroupField/save',
    method: 'post',
    data: data
  })
}

// 删除分组字段
export function delOnlCgformGroupField(id) {
  return request({
    url: '/field/onlCgformGroupField/' + id,
    method: 'delete'
  })
}

// 导出分组字段
export function exportOnlCgformGroupField(query) {
  return request({
    url: '/field/onlCgformGroupField/export',
    method: 'get',
    params: query
  })
}
